export default {
    addRepair(state,obj){
        state.repairData.push(obj);
    },
    editRepairItem(state,obj){
        let index = state.repairData.findIndex(item => {return item.id === obj.classId});
        let indexItem = state.repairData[index].classData.findIndex(item => {return item.id === obj.item.id});
        state.repairData[index].splice(indexItem,1,obj.item);
        console.log(state.repairData[index]);
    }
}




    
    
